package com.swt.testdemo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * @author Bleeth
 * @version 1.0
 * @date 2020-02-04 09:12
 */
@Data
@TableName("sys_msg")
public class SysMsgEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer id;

    private String msgContent;

    /**
     * 消息展示方式  bubble气泡  window窗口
     */
    private String msgShow;

    /**
     * 消息等级
     */
    private String msgLevel;



    private Date createdTime;

    private Date expireTime;

    /**
     * 消息是否删除
     */
    private String status;


    private Date updateTime;

    /**
     * 发送类型  全局发送，指定用户发送
     */
    private String sendType;


    /**
     * 消息类型  管理员消息，系统消息
     */
    private String msgType;



    public static final String MSG_TYPE_SYS = "0";

    public static final String MSG_TYPE_ADMIN = "1";



    public static final String SEND_TYPE_GLOBAL = "0";

    public static final String SEND_TYPE_PART = "1";


    public static final String STATUS_DELETE = "0";

    public static final String STATUS_OK = "1";


    public static final String MSG_LEVEL_FAIL = "0";

    public static final String MSG_LEVEL_WARN = "1";

    public static final String MSG_LEVEL_SUCCESS = "2";





}
